﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.ActiveRecord;
using ZDSoft.UPMS.Model.SystemPart;
namespace ZDSoft.UPMS.Model.BusinessPart
{
    /// <summary>
    /// 学期类
    /// </summary>
    /// Author：刘祖民
    /// CreateTime:2013-5-22

    [ActiveRecord]
    public class Term : ModelBase<Term>
    {
        /// <summary>
        /// 名称
        /// </summary>
        [Property]
        public string Name { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        [Property]
        public DateTime StartTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        [Property]
        public DateTime StopTime { get; set; }

        /// <summary>
        /// 教师上课学期
        /// </summary>
        [HasMany(typeof(TeacherTeachingCourse), ColumnKey = "TermID",Inverse=true)]
        public IList<TeacherTeachingCourse> TeacherTeachingCourses { get; set; }
    }
}
